package io.renren.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.entity.SubscribeEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;

/**
 * 预约表
 *
 * @author kylin
 * @email 1360315221@qq.com
 * @date 2019-03-03 20:44:03
 */
@Mapper
public interface SubscribeDao extends BaseMapper<SubscribeEntity> {

    ArrayList<SubscribeEntity> getAllRoom() throws Exception;

    ArrayList<SubscribeEntity> getAllDepartment() throws Exception;

    /**
     * 插入一条实验室预约
     */
    Integer insertOneSubsc(SubscribeEntity subscribeEntity) throws Exception;

    /**
     * 插入一条实验预约
     */
    Integer insertOneSubsExp(SubscribeEntity subscribeEntity) throws Exception;
}
